var ssoLoginPageUrl = "/sso-login2.html";
var satoken = sessionStorage.getItem("satoken");
if (!satoken) { // 统一拦截器，未登录
	alert("未登录，立即登录……");
	location.href = ssoLoginPageUrl + "?back=" + encodeURIComponent(location.href);
} else {
	console.log("已登录");
}

function doLogout() {
	var satoken = sessionStorage.getItem("satoken");
	sessionStorage.removeItem("satoken");
	location.href=baseSerUrl + '/sso/logout?satoken=' + satoken + '&back=' + encodeURIComponent(location.href);
}